File.setMountOperationFactory

Sets a [callback@MountOperationFactory] function that will be called when a [class@Gio.MountOperation] must be created.

This is useful for creating a [class@Gtk.MountOperation] with the parent [class@Gtk.Window].

If a mount operation factory isn't set, [ctor@Gio.MountOperation.new] will be called.

class File
void
setMountOperationFactory

Parameters

callback GtkSourceMountOperationFactory

a #GtkSourceMountOperationFactory to call when a #GMountOperation is needed.

userData void*

the data to pass to the @callback function.

notify GDestroyNotify

function to call on @user_data when the @callback is no longer needed, or %NULL.

Meta